package com.api.user.model;

import java.io.Serializable;
import javax.persistence.*;

@Table(name = "user_task")
public class UserTask implements Serializable {
    @Id
    @Column(name = "user_task_id")
    private Long userTaskId;

    @Column(name = "user_id")
    private Long userId;

    @Column(name = "task_id")
    private Long taskId;

    /**
     * 完成时间
     */
    @Column(name = "create_time")
    private Long createTime;

    /**
     * 1 已经满足条件 2 已经领取 3 过期
     */
    private String state;

    private Integer target;

    private Integer complete;

    private static final long serialVersionUID = 1L;

    /**
     * @return user_task_id
     */
    public Long getUserTaskId() {
        return userTaskId;
    }

    /**
     * @param userTaskId
     */
    public void setUserTaskId(Long userTaskId) {
        this.userTaskId = userTaskId;
    }

    /**
     * @return user_id
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * @param userId
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * @return task_id
     */
    public Long getTaskId() {
        return taskId;
    }

    /**
     * @param taskId
     */
    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    /**
     * 获取完成时间
     *
     * @return create_time - 完成时间
     */
    public Long getCreateTime() {
        return createTime;
    }

    /**
     * 设置完成时间
     *
     * @param createTime 完成时间
     */
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取1 已经满足条件 2 已经领取 3 过期
     *
     * @return state - 1 已经满足条件 2 已经领取 3 过期
     */
    public String getState() {
        return state;
    }

    /**
     * 设置1 已经满足条件 2 已经领取 3 过期
     *
     * @param state 1 已经满足条件 2 已经领取 3 过期
     */
    public void setState(String state) {
        this.state = state;
    }

    /**
     * @return target
     */
    public Integer getTarget() {
        return target;
    }

    /**
     * @param target
     */
    public void setTarget(Integer target) {
        this.target = target;
    }

    /**
     * @return complete
     */
    public Integer getComplete() {
        return complete;
    }

    /**
     * @param complete
     */
    public void setComplete(Integer complete) {
        this.complete = complete;
    }
}